from rag_test.pingan.langchain.document_loading import load_documents
from rag_test.pingan.langchain.document_splitting import split_document

if __name__ == '__main__':
    file_text = load_documents("平安保险用户手册.pdf")
    print(file_text)

    for text in file_text:
        split_text = split_document(text["page_content"])
        print(split_text)